<?php
/**
 *  since Hash is a concrete implementation of Array_Interface,
 *      and keys are actually sort of indices,
 *      KeyError is a subclass of IndexError
 */
class KeyError
    extends IndexError
{
    const ERROR_MESSAGE = 'Undefined key "%{key}"'; // requires object Hash
} // class

